﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>@ViewBag.Title</title>
    <meta name="keywords" content="Leikjaskolinn er besta skolavidmotid" />
    <meta name="description" content="Leikjaskolinn er skolasida med leikjavidmoti" />
    <link href="@Url.Content("~/Content/template/Leikjaskolinn.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        function clearText(field) {

            if (field.defaultValue == field.value) field.value = '';
            else if (field.value == '') field.value = field.defaultValue;

        }
    </script>
</head>
<body>
    <div id="templatmeo_wrapper">
        <div id="templatemo_header">
            <div id="site_title">
                <h1>
                    GameSchool</h1>
            </div>
            <div id="header_right">
                <div id="logindisplay">
                    @Html.Partial("_LogOnPartial")
                </div>
                <div class="cleaner">
                </div>
            </div>
        </div>
        <!-- end of templatemo_header -->
        <div id="templatemo_menu">
            <ul>
                @if (User.IsInRole("Nemandi"))
                {
                    <li>@Html.ActionLink("Forsida", "Index", "Home")</li>
                    <li><a href="#">Kennsluskrá</a></li>
                    <li><a href="#">Almanak</a></li>
                    <li>@Html.ActionLink("Um Gameschool", "About", "Home")</li>                     
                }
                @if (User.IsInRole("Kennari"))
                {
                    <li>@Html.ActionLink("Forsida", "Index", "Home")</li>
                    <li><a href="#">Kennsluskrá</a></li>
                    <li><a href="#">Almanak</a></li>
                    <li>@Html.ActionLink("Um Gameschool", "About", "Home")</li>
                }
                @if (User.IsInRole("Umsjonarmadur"))
                {   <li>@Html.ActionLink("Forsida", "Index", "Home")</li>
                    <li><a href="#">Kennsluskrá</a></li>
                    <li><a href="#">Almanak</a></li> 
                    <li>@Html.ActionLink("Um Gameschool", "About", "Home")</li>
                }
            </ul>
        </div>
        <!-- end of templatemo_menu -->
        <div id="templatemo_content_wrapper">
            <div id="templatemo_left_sidebar">
                <!-- beginning of left_sidebar -->
                @if (User.IsInRole("Nemandi"))
                {
                    <div class="templatemo_box">
                        <h2>
                            <span></span>Námið</h2>
                        <div class="body">
                            <ul class="side_menu">
                                <li><a href="#">Aðilar skóla</a></li>
                                <li><a href="http://help.ru.is">Tæknileg aðstoð</a></li>
                            </ul>
                        </div>
                        <div class="box_bottom">
                            <span></span>
                        </div>
                    </div>
				
                    <div class="templatemo_box">
                        <h2>
                            Aðgerðir</h2>
                        <div class="body">
                            <ul class="side_menu">
                                <li><a href="#">Fyrirlestrar</a></li>
                                <li><a href="#">Próf</a></li>
                                <li><a href="#">Verkefni</a></li>
                                <li><a href="#">Afrek</a></li>
                                <li><a href="#">Kennsluáætlun</a></li>
                                <li><a href="#">Einkunnir</a></li>
                                <li><a href="#">Próftafla</a></li>
                            </ul>
                        </div>
                        <div class="box_bottom">
                            <span></span>
                        </div>
                    </div>
                }
                @if (User.IsInRole("kennari"))
                {
                    <div class="templatemo_box">
                        <h2>
                            <span></span>Námið</h2>
                        <div class="body">
                            <ul class="side_menu">
                                <li><a href="#">Aðilar skóla</a></li>
                                <li><a href="#">Tæknileg aðstoð</a></li>
                            </ul>
                        </div>
                        <div class="box_bottom">
                            <span></span>
                        </div>
                    </div>
                    <div class="templatemo_box">
                        <h2>
                            Aðgerðir</h2>
                        <div class="body">
                            <ul class="side_menu">
                                <li><a href="#">Kennsluáætlun</a></li>
                            </ul>
                        </div>
                        <div class="box_bottom">
                            <span></span>
                        </div>
                    </div>
        
                }
                @if (User.IsInRole("Umsjonarmadur"))
                {
                    <div class="templatemo_box">
                        <h2>
                            <span></span>Námið</h2>
                        <div class="body">
                            <ul class="side_menu">
                                <li><a href="#">Aðilar skóla</a></li>
                                <li><a href="#">Tæknileg aðstoð</a></li>
                            </ul>
                        </div>
                        <div class="box_bottom">
                            <span></span>
                        </div>
                    </div>
                     
                    <div class="templatemo_box">
                        <h2>
                            <span></span>Aðgerðir</h2>
                        <div class="body">
                            <ul class="side_menu">
                                <li>@Html.ActionLink("Bæta við námskeiði", "CreateCourse", "Course")</li>
                                <li>@Html.ActionLink("Bæta við notanda", "Register", "Account")</li>
                                <li>@Html.ActionLink("Skrá Kennara á námskeið", "EnrollTeacher", "Course")</li>
                                <li>@Html.ActionLink("Skrá nemanda á námskeið", "EnrollStudent", "Course")</li>
                                <li><a href="#">Aðilar skóla</a></li>
                            </ul>
                        </div>
                        <div class="box_bottom">
                            <span></span>
                        </div>
                    </div>
                     
                     
                     
                }
            </div>
            <!-- end of left_sidebar -->
            <div id="templatemo_right_sidebar">
                <!-- beginning of right_sidebar -->
                @if (User.IsInRole("Kennari"))
                {
                    <div class="templatemo_box">
                        <h2>
                            <span></span>Námskeiðin mín</h2>
                        <div class="body">
                            <ul class="side_menu">
                                @{     
                    Html.RenderAction("GetCourses", "Course");
                                }
                            </ul>
                        </div>
                        <div class="box_bottom">
                            <span></span>
                        </div>
                    </div>
            
                    <div class="sidebar_box">
                        <h2>@User.Identity.Name</h2>
                        <div class="body2">
                            <ul class="side_menu2">
                                <li><a href="#" target="_parent">
                                    <img src="../../Content/template/images/User.png" width="70" height="70" alt="Mynd af notanda" /></a></li>
                                <li><a href="#">Stundatafla</a></li>
                                <!-- Not implemented-->
                                <li><a href="#">Vefpóstur</a></li>
                                <!-- Not implemented-->
                            </ul>
                        </div>
                        <div class="box_bottom">
                            <span></span>
                        </div>
                    </div>
                }
                @if (User.IsInRole("Nemandi"))
                {
                    <div class="templatemo_box">
                        <h2>
                            <span></span>Námskeiðin mín</h2>
                        <div class="body">
                            <ul class="side_menu">
                                @{
                    Html.RenderAction("GetCourses", "Course");
                                }
                            </ul>
                        </div>
                        <div class="box_bottom">
                            <span></span>
                        </div>
                    </div>
            
                    <div class="sidebar_box">
                        <h2>@User.Identity.Name</h2>
                        <div class="body2">
                            <ul class="side_menu2">
                                <li><a href="#" target="_parent">
                                    <img src="../../Content/template/images/User.png" width="70" height="70" alt="Mynd af notanda" /></a></li>
                                <li><a href="#">Stundatafla</a></li>
                                <!-- Not implemented-->
                                <li><a href="#">Vefpóstur</a></li>
                                <!-- Not implemented-->
                            </ul>
                        </div>
                        <div class="box_bottom">
                            <span></span>
                        </div>
                    </div>
                }
                @if (User.IsInRole("Umsjonarmadur"))
                {
                    <div class="sidebar_box">
                        <h2>@User.Identity.Name</h2>
                        <div class="body2">
                            <ul class="side_menu2">
                                <li><a href="#" target="_parent">
                                    <img src="../../Content/template/images/User.png" width="70" height="70" alt="Mynd af notanda" /></a></li>
                                <li><a href="#">Stundatafla</a></li>
                                <!-- Not implemented-->
                                <li><a href="#">Vefpóstur</a></li>
                                <!-- Not implemented-->
                            </ul>
                        </div>
                        <div class="box_bottom">
                            <span></span>
                        </div>
                    </div>
                }
            </div>
            <!-- end of right_sidebar -->
        </div>
    </div>
    <!-- end of templatmeo_wrapper -->
    <div id="templatemo_footer_wrapper">
        <!--	<div id="templatemo_footer">

			<ul class="footer_menu">
				<li><a href="#">Stundatafla</a></li>
				<li><a href="#">Vefpóstur</a></li>
				<li><a href="#">Meira?</a></li>
				<li><a href="#">Meira?</a></li>
				<li><a href="#">Meira?</a></li>
				<li><a href="#">Meira?</a></li>
				<li><a href="#">Business</a></li>
				<li><a href="#">Videos</a></li>
				<li class="last_menu"><a href="#">Contact</a></li>
			</ul>
    
			Copyright © 2048 <a href="#">Hópur 12</a> |  
			Validate <a href="http://validator.w3.org/check?uri=referer">XHTML</a> &amp; 
					 <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>
    
		</div> <!-- end of footer -->
        <!-- </div> <!-- end of templatmeo_footer_wrapper -->
    </div>
    <div id="main">
        @RenderBody()
    </div>
    <div id="footer">
    </div>
</body>
</html>
